<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="org.springframework.security.web.WebAttributes" %>
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<%@ include file="/common/meta.jsp" %>
	<meta content="application" name="menu" />
	<link href="${ctx}/css/base.css" rel="stylesheet" type="text/css" />
	<link href="${ctx}/css/master.css" rel="stylesheet" type="text/css" />
	<script src="${ctx}/js/jquery.js" type="text/javascript"></script>
	<script src="${ctx}/js/table.js" type="text/javascript"></script>
	<link href="${ctx}/validate/jquery.validate.css" type="text/css" rel="stylesheet"/>
	<script src="${ctx}/validate/jquery.validate.js" type="text/javascript"></script>
	<script src="${ctx}/validate/messages_cn.js" type="text/javascript"></script>
	<script>
	$(document).ready(function() {
		$("#j_username").focus();
		$("#loginForm").validate({
 			rules: {
				j_username:"required",
				j_password:"required"
			},
			messages: {
				j_username:"<spring:message code="msg.username_not_null"/>",
				j_password:"<spring:message code="msg.password_not_null"/>"
			},
	        errorElement: "em"
 		});
	});
	</script>
</head>
<body>
<jsp:include page="/common/header.jsp" />
<div class="main_wrap1">
	<div class="main_all">
       	<div class="main_right">
			<div class="mtit"><spring:message code="title.sapquery" /></div>
			<div class="mtxt">
				<div>
					<div class="Center">
						<div class="right_tt">
							<div class="tt_top"></div>
								<div class="tt_main">
									<form id="loginForm" action="${ctx}/j_spring_security_check" method="post" >
									
									<%
						if (session.getAttribute(WebAttributes.AUTHENTICATION_EXCEPTION) != null) {
					%> 
					<span class="icon_cross"> 登录失败，请重试.</span>
					<%
						}
					%>
					
				
									<table border=0 cellspacing=0 cellpadding=0 width="100%">
									<tbody>
										<tr style="HEIGHT: 30px">
											<td align=right width="65">&nbsp;</td>
											<td align=right width="50"><spring:message code="user.username" />：</td>
											<td><input type='text' id='j_username' name='j_username' style="width:130px;" /></td>
										</tr>
										<tr style="HEIGHT: 30px">
											<td align=right>&nbsp;</td>
											<td align=right><spring:message code="user.password" />：</td>
											<td><input type='password' id='j_password' name='j_password' style="width:130px;" /></td>
										</tr>
										<tr>
											<td class="style3"></td>
											<td><input type="submit" name="Button1" value="<spring:message code="title.login" />" id="Button1" />
											</td>
											<td><span id="Label3">
											</span><input type="button" value="<spring:message code="title.register" />" onclick="editRecord('${ctx}/userreg.action')"/></td>
										</tr>
									</tbody>
									</table>
									</form>
								</div>
								<div class="tt_m2">
								<div class="tt_tit"></div>
							</div>
						</div>
					</div>
					<br />
					<br />
					<br />
				</div>
			</div>
		</div>
		<div class="clear" style="border-bottom:1px solid #cfcfcf; height: 14px;"></div>
	</div>
	<jsp:include page="/common/footer.jsp" />
</div>
</body>
</html>

